home *** CD-ROM | disk | FTP | other *** search
/ SPACE 1 / SPACE - Library 1 - Volume 1.iso / program / 168 / eternal2.doc < prev    next >
Text File  |  1988-03-31  |  10KB  |  214 lines

  1. ********
  2. ETERNAL2 RAM disk documentation (short version)
  3. ********
  4.  
  5. This is a reset-proof RAM disk which can be configured to use any
  6. drive identifier or size.  It can also be resized or removed.
  7.  
  8. To use this RAM disk, put ETERNAL2.PRG in your floppy disk AUTO folder.
  9. Be sure it is the first file you put in AUTO.  You can create a RAMDISK.DAT
  10. file (see next paragraph) and place it in AUTO as well.  Reboot, then
  11. Install the correct desktop icon and Save Desktop (from the menu).
  12.  
  13.  
  14. By default, the drive identifier is H and the size is 100 Kbytes.  However,
  15. if the file \AUTO\RAMDISK.DAT exists, the RAM disk spec will be read from
  16. it instead (this should be a 4-byte ASCII file).  Finally, though, you can
  17. override both of the above by holding down the Alt key while booting, in
  18. which case you will be prompted to enter the RAM disk spec from the keyboard
  19. (or hold down Caps Lock to prevent the RAM disk from being created at all).
  20.  
  21.  
  22. The RAM disk spec must be specified as:
  23. Yxxx
  24. where Y is a drive identifier (D through P)
  25. and xxx is the size in kilobytes
  26.  
  27. for instance
  28. D480 means drive D: and size 480k,
  29. G064 means drive G: and size 64k.
  30.  
  31. The special value Q for the drive identifier can be used; this causes the
  32. RAM disk to not be created at all.
  33.  
  34. The configuration must be given in this form (four ASCII characters).
  35. It can either be stored in the file \AUTO\RAMDISK.DAT, or can be typed
  36. from the keyboard if Alt was held down while booting.
  37.  
  38. NOTE: the RAMDISK.DAT file can be created with any text editor, or you can
  39.       use the program RAMCONF.TOS to create it.  Do NOT use the program
  40.       CONFGRAM.TOS that was included with an earlier version of this RAM disk,
  41.       as it creates a binary (not ASCII) RAMDISK.DAT file (and obviously, do
  42.       not use any RAMDISK.DAT file created by this program).
  43.  
  44.  
  45. "Reset-proof" means that you can put your original boot disk into the
  46. floppy disk drive and press the reset button, and after the reboot the files
  47. on the RAM disk will still be there.  This is a very handy feature if your
  48. computer crashes accidentally, since you can reboot without losing your
  49. RAM disk files.
  50.  
  51. NOTE: it is best to reboot with the original boot disk in the disk drive to
  52.       restore the RAM disk.  If you reboot with another boot disk, results
  53.       may be unpredictable.
  54.  
  55. The RAM disk can be removed by pressing the reset button and holding down
  56. "Caps Lock", or resized by pressing reset and holding down "Alt".
  57.    NOTE HOWEVER  that doing so erases all the files on the RAM disk.
  58. That is, if you want to make use of the "reset-proof" feature, keep your
  59. fingers off the keyboard while rebooting.
  60.  
  61.  
  62. This is a free program.  The original reset-proof RAM disk program was
  63. written by John Harris; however the current version contains improvements
  64. and modifications by many others.  This documetation file was written
  65. by Gordan Palameta based on docs by John Franco.
  66.  
  67. ********
  68. Documentation (long version)
  69. ********
  70. --------
  71. What is a RAM disk
  72. --------
  73.  
  74. If you have never used a RAM disk before, it is well worth taking
  75. the trouble to learn about them and use them.  A RAM disk makes
  76. part of the computer's memory look like a disk.  You can copy files
  77. to or from RAM disk, and run programs from it.
  78.  
  79. A RAM disk acts just like a floppy disk or hard disk in many ways, but because
  80. it "lives" in the computer's memory, reading or writing to it is very fast
  81. and involves no wear and tear on physical disk drives.  It is useful for
  82. any application that creates temporary files (for instance, compilers).
  83.  
  84. If you have a single-floppy system and no hard disk, copying files from
  85. one floppy disk to another involves a lot of disk switching.  A RAM disk
  86. helps out a lot here, since you can copy a file from floppy to RAM
  87. disk, then just copy back from RAM disk onto another floppy.
  88.  
  89. The disadvantage of RAM disks over real disk drives is that the storage is
  90. only temporary.  When you turn off your computer, the contents of memory are
  91. lost.  Since files on a RAM disk are obviously vulnerable to accidental
  92. power failures, they must be backed up to floppy or hard disk to save them
  93. permanently.
  94.  
  95. --------
  96. Setting up the RAM disk
  97. --------
  98.  
  99. Setting up the RAM disk requires a minor effort.  Read this section to
  100. find out what is involved.  However, the set-up only has to be done once.
  101.  
  102. First decide what size you want the RAM disk to be.  If you have a 1040 ST,
  103. 480 k might be a good size; if you have a 520 ST, you might try 120 k.  You
  104. can configure the size differently, but remember that the RAM disk lives in
  105. memory, so if you make the RAM disk too big, there will not be enough memory
  106. left for the rest of your programs to run.
  107.  
  108. Second, decide which drive identifier you want the RAM disk to use.  This is
  109. a single capital letter: for instance, the drive identifier for your main
  110. floppy disk is "A", and if you have a second floppy disk, it's "B".  So for
  111. the RAM disk, you can choose any letter between D and P (DON'T use C, it's
  112. reserved).  If you don't have a hard disk, "D" is a good choice.  If you do
  113. have a hard disk, it probably already uses "D", "E", and several other letters
  114. for its partitions, so pick a drive identifier for the RAM disk that doesn't
  115. conflict with the ones already used by the hard disk partitions.
  116.  
  117. Then run the program RAMCONF.TOS.  It will ask you to answer the two
  118. questions mentioned above, namely what size RAM disk do you want and what
  119. drive identifier do you want.  It will create a file called RAMDISK.DAT
  120. to store this data.
  121.  
  122. Then take your boot disk (the disk you stick in your disk drive when you
  123. boot your computer).  Make a new folder on it called "AUTO" (use the
  124. New Folder... selection of the File menu).  NOTE: if you already have an
  125. AUTO folder with files in it, there is a slight extra complication, as
  126. will be explained shortly.
  127.  
  128. Copy ETERNAL2.PRG into AUTO.  Also copy the file RAMDISK.DAT into AUTO.
  129.  
  130. The AUTO folder is a special folder -- all the programs in it are executed
  131. when you boot your computer.  Note they get executed in the order that they
  132. were copied into the AUTO folder, so if you have more than one program in
  133. your AUTO folder and the order in which they are executed matters, you should
  134. copy all the programs out of AUTO and temporarily save them somewhere else,
  135. then delete all the files in AUTO, and finally copy them all back one by one,
  136. in the order you want them to get executed.  
  137.  
  138. NOTE: the RAM disk program ETERNAL2.PRG should be executed as the first
  139.       AUTO program, so if you already had an AUTO folder on your boot disk,
  140.       you must follow the procedure mentioned above to make sure of this.
  141.  
  142. One important note about AUTO folders:  programs that use GEM will not
  143. work properly in an AUTO folder (because GEM is not yet initialized when
  144. the AUTO folder is executed).  So do not put any GEM programs in AUTO --
  145. you will crash your computer.  (GEM programs, generally speaking, are
  146. ones that use the mouse, menus, etc.).
  147.  
  148. To use the RAM disk, you must put your boot disk (with ETERNAL2.PRG and
  149. RAMDISK.DAT in the AUTO folder) in the disk drive and reboot your computer
  150. (press the reset switch at the back of the computer).  After rebooting, the
  151. RAM disk has been created, but you don't see it yet -- you have to create
  152. a disk icon for it.  Do the following:
  153.  
  154. Click (once) on the "A" floppy disk icon -- it will turn dark.
  155.  
  156. Select the "Install Disk Drive..." option from the Options menu.
  157.  
  158. A box display will appear, with two lines in it:
  159.  
  160.    The first line will say "A" -- use the Backspace key to erase
  161.    the A, and then type in whatever letter you selected as the
  162.    drive identifier for the RAM disk (make sure you pick the same
  163.    letter you picked when you ran RAMCONF.TOS  and type it in
  164.    as a capital (not lowercase) letter).
  165.  
  166.    The second line says "FLOPPY DISK".  Erase it with the Backspace
  167.    key, then type in whatever you like (it really doesn't matter -- you
  168.    can type "RAM DISK", or if you chose the size to be 400k you might want
  169.    to type in "400 k" as a reminder).
  170.  
  171. Click on the "Install" button in the box display.
  172.  
  173. A new icon should appear on your desktop.  It looks just like the
  174. "A" FLOPPY DISK icon, but the labels will be whatever you chose in
  175. the steps above.  This is your RAM disk icon.
  176.  
  177. If you like you can double click on the RAM disk icon, and a window
  178. will open up.  Just like your floppy disk can have one or more windows
  179. associated with it, so can your RAM disk. 
  180.  
  181. Important last step:  select the "Save Desktop" option of the Options
  182. menu.  This will create a file called DESKTOP.INF (or modify it if it
  183. already exists) on your boot disk.  This ensures that the RAM disk icon
  184. you've just created will be created automatically every time you boot
  185. with your boot disk.
  186.  
  187. The DESKTOP.INF file actually stores all kinds of information about
  188. the desktop, including the positions and sizes of windows and the positions
  189. of icons.  Anytime you rearrange the appearance of the desktop, you can
  190. save the new arrangement by putting your boot disk in the disk drive
  191. and using "Save Desktop".
  192.  
  193. --------
  194. Using the RAM disk
  195. --------
  196.  
  197. You only have to do the above procedure once.  After this, every time you
  198. turn on your computer with your boot disk in the disk drive, the RAM disk
  199. is created automatically for you.
  200.  
  201. If your computer crashes at any time, the files on this RAM disk are not
  202. lost (if you turn the computer off, though, they are).  To recover from a
  203. crash, place your original boot disk in the floppy disk drive and press the
  204. reset button of your computer.
  205.  
  206.  
  207. If for any reason you wish to use a different size RAM disk, you can run
  208. RAMCONF.TOS again to create a new RAMDISK.DAT file to put in your AUTO
  209. folder.  Or you can hold down the Alternate key while booting your computer --
  210. this causes the information in the RAMDISK.DAT file to be ignored, and lets
  211. you enter the size you want from the keyboard (read the first part of this
  212. documentation to find out how to use this feature).
  213.  
  214.